package com.junjun.ssm.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "sys_movie")
@NoArgsConstructor
@AllArgsConstructor
public class MovieEntity {
    @Id
    @Column(name = "movie_id")
    private String movieId;
    @Column(length = 48)
    private String movieName;

    @Column(length = 48)
    private String movieNumber;

    @Column(columnDefinition = "double default 0")
    private double moviePrice;
    @Column(columnDefinition = "int default 0")
    private int movieNum;
    @Column(columnDefinition = "datetime")
    private String movieTime;

}
